import axios from 'axios';
let base = 'records';


/**
 * 作业列表
 * created by xwang 2018.09.12 创建方法
 * **/
export const getRecordsList = params => {
    return axios.post(`${base}/records_list`, params);
};


/**
 * 作业详情
 * created by xwang 2018.09.12 创建方法
 * **/
export const getRecordsDetail = params => {
    return axios.post(`${base}/records_detail`, params);
};

/**
 * 作业资料导出
 * created by xwang 2018.09.12 创建方法
 * **/
export const getGenerateBugList = params => {
    return axios.post(`${base}/generate_bug_list`, params);
};

/**
 * 提交作业
 * created by xwang 2018.09.14 创建方法
 * **/
export const updateRecords = params => {
    return axios.post(`${base}/records_update`, params);
};

/**
 * 提交作业
 * created by xwang 2018.09.14 创建方法
 * **/
export const submitRecords = params => {
    return axios.post(`${base}/records_submit`, params);
};

/**
 * 打回作业
 * created by xwang 2018.09.14 创建方法
 * **/
export const rejectRecords = params => {
    return axios.post(`${base}/records_reject`, params);
};

/**
 * 所有检查项
 * created by xwang 2018.09.18 创建方法
 * **/
export const getInspectItems = params => {
    return axios.post(`${base}/inspect_all`, params);
};